﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
    namespace="Deepcode.QueryPatterns.Redux.Domain" assembly="Deepcode.QueryPatterns.Redux">

	<class name="CustomerAddress" table="CustomerAddress" schema="sales">
		<composite-id>
			<key-many-to-one name="Customer" class="Customer" column="CustomerId"/>
			<key-many-to-one name="Address" class="Address" column="AddressId"/>
		</composite-id>

		<many-to-one name="Type" class="AddressType" column="AddressTypeId"/>
	</class>

</hibernate-mapping>
